package com.kfgj.hkp.manager.employee.business.impl;

import com.kfgj.hkp.common.dataaccess.mybatis.IMyBatisBaseDao;
import com.kfgj.hkp.dao.employee.IEmployeeDbDao;
import com.kfgj.hkp.entity.employee.EmployeeEntity;
import com.kfgj.hkp.manager.AbstractManager;
import com.kfgj.hkp.manager.employee.business.IEmployeeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by davidcun on 2018/5/16.
 */
@Component
public class EmployeeManagerImpl extends AbstractManager<EmployeeEntity> implements IEmployeeManager {

    @Autowired
    private IEmployeeDbDao employeeDbDao;

    @Override
    protected IMyBatisBaseDao<EmployeeEntity, Long> getMyBatisDao() {
        return this.employeeDbDao;
    }

    @Override
    public List<EmployeeEntity> selectEmpByRegion(String region) {
        return employeeDbDao.selectEmpByRegion(region);
    }

}
